package 笔试2.网易.three;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class shuru {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int T = sc.nextInt();

        List<int[][]> glist =new ArrayList<>();
        for (int i = 0; i < T; i++) {
            int max=sc.nextInt();
            int M1 = sc.nextInt();
            int M2 = sc.nextInt();
            int[][] g= new int[M1][2];
            for (int j = 0; j < M1; j++) {
                g[j][0]=sc.nextInt();
                g[j][1]=sc.nextInt();
            }
            glist.add(g);
        }
        System.out.println(1);
    }
}
